//
//  GRSellAfterCell.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/7/25.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRSellAfterCell.h"

@implementation GRSellAfterCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setReturnModel:(GROrderReturnModel *)returnModel{
    _returnModel = returnModel;
    [self.goodImageView sd_setImageWithURL:[NSURL URLWithString:returnModel.orderInfoMap[@"imgUrl"]] placeholderImage:[UIImage imageNamed:@"placeholderImage"]];
    self.nameLabel.text = returnModel.orderInfoMap[@"goodsName"];
    self.specLabel.text = returnModel.orderInfoMap[@"specDesc"];
    self.timeLabel.text = returnModel.createAtStr;
        self.titleLabel.text = @"申请退货";
        self.prgressTitleLabel.text = @"退货进度";
        if (returnModel.status == 1 ) {
             [self.statusLabel setTitle:@"平台受理中" forState: UIControlStateNormal];
        }else if (returnModel.status == 2){
             [self.statusLabel setTitle:@"退货中" forState: UIControlStateNormal];
        }else if (returnModel.status == 3){
            [self.statusLabel setTitle:@"退货完成" forState: UIControlStateNormal];
        }else{
            [self.statusLabel setTitle:@"退货关闭" forState: UIControlStateNormal];
        }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
